<?php
/**
 * Created by PhpStorm.
 * User: Dave
 * Date: 2018/8/29
 * Time: 18:32
 */

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

use Biz\model\smallenergy\SmallEnergyMessage as mSmallEnergyMessage;
use Doraemon\cache\MsgCounter;

$data = mSmallEnergyMessage::getUnreadCount();
foreach ($data as $key => $value)
{
    if($value['to_uid']) {
        $result = MsgCounter::addMsgNum($value['to_uid'], MsgCounter::TYPE_CUSTOMER_SERVICE);
    }
    var_dump($result);
}